package com.getpebble.android.framework.endpoint;

import com.getpebble.android.common.model.FrameworkState;

public abstract class RequestableEndpoint extends Endpoint {
    abstract boolean onPrfRequest(EndpointRequest endpointRequest, FrameworkState frameworkState);

    abstract boolean onRequest(EndpointRequest endpointRequest, FrameworkState frameworkState);

    protected boolean isRequestSupported(EndpointRequest request) {
        return getSupportedEndpoints().contains(request.getEndpointId());
    }
}
